<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>flex</title>
  <style> 
    .container {
      display: flex;
      flex-wrap: wrap ;
    }
    .item {
      background-color: #ccc;
      flex-grow: 1;
      flex-basis: 200px; /* 最小宽度 */
    }
    
  </style>
</head>
<body>
    <div class="container">
        <div class="item">1</div>
        <div class="item">2</div>
        <div class="item">3</div>
        <div class="item">4</div>
        <div class="item">5</div>
    </div>
</body>
</html>